package com.example.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
//@Service
@FeignClient(name = "account",fallback = AccountClientFallBack.class)
public interface AccountClient {

    @GetMapping("account/debit")
    String debit(@RequestParam("id") Integer id,@RequestParam("amount") Long amount);

}
